class Palidrome(object):
    
    def __init__(self, string):
        if isinstance(string, int):
            string = str(string)
        self.string = string
        
    
    def isPalidrome(self):
        for i in range(len(self.string) // 2):
            if not (self.string[i] == self.string[-i-1]):
                return False
        return True


while 1:
    number = input("请输入一串数字(输入end结束):")
    if number == "end":
        break
    palid = Palidrome(number)
    print("{}是回文数:{}".format(number, palid.isPalidrome()))

